// src/stores/dataList.js
import { defineStore } from 'pinia'

export const useReportStore = defineStore('report', {
  state: () => ({
    dataLists: {}     // 用 key → 数据 列表
  }),
  actions: {
    // key: 'chinaSeniorList', payload: [...tableRows]
    add(key, payload) {
      this.dataLists[key] = payload
    },
    clear(key) {
      delete this.dataLists[key]
    }
  }
})
